﻿using CommunicationCore.OpcUaClient;
using System;

namespace OpcTest
{
    class Program
    {
        static void Main(string[] args)
        {
            OpcServerConfiguration cnf = new OpcServerConfiguration();
            cnf.ClientName = "Test0923";
            cnf.UseConfiguration = true;
            cnf.ServerUrl = "opc.tcp://10.61.140.25:49320";
            cnf.UserName = "OpcUa";
            cnf.Password = "Shris2020";
            cnf.SecerityPolic = 3;

            KepWareOpcService ks = new KepWareOpcService(cnf);
            ks.DoConnect();

            ks.BrowsNode();

            Console.ReadLine();
        }
    }
}
